package com.ajmd.onlineexam.vo;

import com.ajmd.onlineexam.entity.ImagePO;
import com.ajmd.onlineexam.entity.OptionPO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author ajmd
 * @since 2023/4/21 16:37
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class QuestionVO implements Serializable {
    //唯一标识
    private String id;
    //所属题库id
    private String belongQuestionBankId;
    //试题内容
    private String content;
    //试题答案
    private String answer;
    //答案解析
    private String answerAnalysis;
    //试题类型
    private Integer questionType;
    //是否允许顺序不一致
    private Boolean allowDifficultOrder;
    //答案关键词
    private String answerKey;
    //是否有图片
    private Boolean hasPic;
    //图片列表
    private List<ImagePO> picList;
    //选项列表
    private List<OptionVO> optionList;
    //评分方式
    private Integer gradeMethod;
    //困难等级
    private Integer difficulty;
    //正确率
    private BigDecimal rightRate;
    //创建人
    private String createPerson;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp updateTime;
}
